package com.example.waypoint;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;

public class MainActivity extends Activity {
	
	
	//Inicial activity from de WayPoint app
	// Created 11/08//2012 by Ayllyn Franco
	
	//GUI VARIABLES
	ImageButton map;
	ImageView logo;
	Button buses;
    Button events;
    Button buildings;
    Button extras;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        buses =(Button)findViewById(R.id.buses);
        buses.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent myIntent = new Intent(v.getContext(),RutaActivity.class);
    			v.getContext().startActivity(myIntent);
			}
		});
        
        events = (Button) findViewById(R.id.events_button);
        events.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View view) {
    			Intent myIntent = new Intent(view.getContext(),EventsActivity.class);
    			view.getContext().startActivity(myIntent);
    		}
        });
        
        
        map = (ImageButton) findViewById(R.id.map);
        map.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View view) {
    			Intent myIntent = new Intent(view.getContext(),MapsActivity.class);
    			view.getContext().startActivity(myIntent);
    		}
        });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
